{% extends "lbforum/base_site.html" %}

{% load i18n %}
{% load lbforum_widget_tags %}
{% load onlineuser_tags %}

{% block content_right_bar %}
    {% include 'lbforum/widgets/cur_user_profile.html' %}
	<div class="sep20"></div>
    <!-- {% lbf_categories_and_forums %}
    <div class="sep20"></div>
    {% lbf_status %}
    <div class="sep20"></div>
    {% onlineinfos 1 "lbforum/widgets/onlineinfos.html" %}
    <div class="sep20"></div>
    <div class="box" id="friend-links-box">
        <div class="cell">
            <span class="fade">
                {% trans "Friend Links" %}
            </span>
        </div>
        <div class="inner">
            {% include 'lbforum/plugins/inc_friend_links.html' %}
        </div>
</div>
-->
{% endblock %}

{% block content_content %}
    <div class="box" id="topics_index">
        <div class="cell" align="left">
		<!-- <div class="fr"><span style="font-size: 110%;" class="fade">{{ LBFORUM_SUB_TITLE }}</span></div> -->
            <span class="bigger">Welcome to <strong>{{ LBFORUM_TITLE }}</strong></span>
            <div class="sep10"></div>
        </div>

        {% include 'lbforum/inc_topic_list.html' %}
    	<div class="inner">
        	<div class="sep5"></div>
        	<div align="center">
            	<div class="sep5"></div>
	    	<form action="{% url trust_view_rating %}" accept-charset="utf-8" method="post"> 
		        {% csrf_token %}
			<input type="text" id="verify_text" maxlength="40" name="trust_name" value="">
			<input type="submit" class="super normal button" value="Verify" >
		</form>
				
				
	    	<div class="sep5"></div>
        </div>
    </div>
</div>

{% if err_msg %}
	<div class="sep20"></div>

        <div class="box" id="topics_index">
        	<div class="inner" align="left">
		<!-- <div class="fr"><span style="font-size: 110%;" class="fade">{{ LBFORUM_SUB_TITLE }}</span></div> -->
		<span class="bigger red"><strong>{{verification_user_name}}</strong>:&nbsp;{{ err_msg }}</span>
        	</div>
	</div>

{% endif %}


{% if verification_user_name %}
	<div class="sep20"></div>
		
<div class="box">
    <div class="cell">
	    <span class="bigger sky"><strong>Verify.Me User:</strong>&nbsp;&nbsp;{{ rated_user.username }}</span>
    </div>
    <div class="inner">
        <table cellpadding="3" cellspacing="0" border="0" width="100%">
            <tbody>
                <tr>
                    <td align="left" width="50%"><span class="fade">{% trans "Verify.Me Score" %}</span></td>
		    <td align="left"><span class = "bigger sky"><strong >{{ rated_user.trust_profile.trust_meta_score }}</strong></span></td>
                </tr>
                <tr>
			<td align="left" width="50%"><span class="fade">{% trans "E-Bay Account Name" %}</span>&nbsp;-&nbsp;
				{% if rated_user.trust_profile.trust_ebay_verified %}
				    <span class="green ">Verified!</span>
				{% else %}
				<span class="red ">Not Verified!</span>
				{% endif %}
			</td>
		    <td align="left"><strong>{{ rated_user.trust_profile.trust_ebay_acct_name }}
			</strong>
	    	    </td>
                </tr>
                <tr>
                    <td align="left" width="50%"><span class="fade">{% trans "E-Bay Score" %}</span></td>
                    <td align="left"><strong>{{ rated_user.trust_profile.trust_ebay_avg_score }}</strong></td>
                </tr>
                <tr>
			<td align="left" width="50%"><span class="fade">{% trans "AirBnB Account Name" %}</span>&nbsp;-&nbsp;
				{% if rated_user.trust_profile.trust_airbnb_verified %}
				<span class="green ">Verified!</span>
				{% else %}
				<span class="red ">Not Verified!</span>

				{% endif %}
			</td>
                    <td align="left"><strong>{{ rated_user.trust_profile.trust_airbnb_acct_name }}</strong></td>
                </tr>
                <tr>
                    <td align="left" width="50%"><span class="fade">{% trans "AirBnB Score" %}</span></td>
                    <td align="left"><strong>{{ rated_user.trust_profile.trust_airbnb_avg_score }}</strong></td>
                </tr>
                <tr>
                    <td align="left" width="50%"><span class="fade">{% trans "Get Around Name" %}</span>&nbsp;-&nbsp;
				{% if rated_user.trust_profile.trust_airbnb_verified %}
				    <span class="green ">Verified!</span>
				{% else %}
				<span class="red ">Not Verified!</span>
				    {% endif %}
			</td>
                    <td align="left"><strong>{{ rated_user.trust_profile.trust_gar_acct_name }}</strong></td>
                </tr>
                <tr>
                    <td align="left" width="50%"><span class="fade">{% trans "Get Around Score" %}</span></td>
                    <td align="left"><strong>{{ rated_user.trust_profile.trust_gar_avg_score }}</strong></td>
                </tr>
            </tbody>
        </table>
    </div>
</div>

{% for data in rating_data_list %}    
<div class="sep10"></div>
	
<div class="box">
    <div class="cell" style="padding:5px">
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
			<td>
				{% if data.rating_bool %}
				<img align="right" style="float:left;"  src ="/static/lbforum/images/checkmark_icon.png"></img>
				{% else %}
				<img align="right" style="float:left;"  src ="/static/lbforum/images/x_icon.png"></img>
				{% endif %}
			
				&nbsp;&nbsp;
				<span class="bigger sky"><strong> {{data.trust_rating.trust_reviewer_name}} says...</strong></span>
			</td>
		<td><img align="right" style="float:right;padding-top:6px;" {% if data.trust_rating.trust_source_type == 'eBay' %}
                                                  src ="/static/lbforum/images/ebay_logo.png"
                                                 {% else %}{% if data.trust_rating.trust_source_type == 'AirBnb' %}
                                                  src ="/static/lbforum/images/airbnb_logo.png"
                                                 {% else %}{% if data.trust_rating.trust_source_type == 'GetAround' %}
												  src ="/static/lbforum/images/getaround_logo.png"
												 {% endif %}{% endif %}{% endif %}/><td>
		</tr>
		</table>
    </div>
    <div class="inner">
        <table cellpadding="3" cellspacing="0" border="0" width="100%">
		<tbody>
               	<tr>
                    <td width = "100%" align="left"><strong>{{ data.trust_rating.trust_review_string }}</strong></td>
	    </tr>

            </tbody>
        </table>
    </div>
</div>
{% endfor %}




{% endif %}



    {% endblock %}
